package com.SoilMM.service.impl;

import com.SoilMM.entity.GtimeMonitEntity;
import com.SoilMM.entity.ShiShangEntity;
import com.SoilMM.mapper.ShiShangMapper;
import com.SoilMM.service.ShiShangService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Gramorgan
 * @since 2021-07-03
 */
@Service
public class ShiShangServiceImpl extends ServiceImpl<ShiShangMapper, ShiShangEntity> implements ShiShangService {

    @Override
    public ShiShangEntity ListShiData() {
        QueryWrapper<ShiShangEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("gt_minute", 5);
        ShiShangEntity shiShangEntity = baseMapper.selectOne(queryWrapper);

        return shiShangEntity;
    }
}
